package cn.mzy.feign;

import cn.mzy.domain.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Package: cn.mzy.feign
 * @ClassName: UserService
 * @Date:2022/11/14 13:10
 * @Description:
 */
@FeignClient(value = "user-server", path = "/user")
public interface UserService {
    @GetMapping("/{id}")
    User getUserById(@PathVariable("id") Long id);
}